package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

public class OSWDemo {
    public static void main(String[] args) throws IOException {
        OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("./file/osw.txt"), StandardCharsets.UTF_8);

        osw.write("那是我日夜思念深深爱着的人呐");
        osw.write("到底我该如何表达");

        osw.close();

    }
}
